﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.Office.Interop.Excel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PanhuaWin.系统管理
{
    public class Dic_WorkLine                            
    {    /// <summary>
         ///
         /// </summary>
        [Key]
        [Display(Name = "guid")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid guid { get; set; }

        /// <summary>
        ///部门
        /// </summary>
        [Display(Name = "部门")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        public Guid? DepartGuid { get; set; }

        /// <summary>
        ///产线编号
        /// </summary>
        [Display(Name = "产线编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string WorkLineCode { get; set; }

        /// <summary>
        ///产线名称
        /// </summary>
        [Display(Name = "产线名称")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string WorkLineName { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "AuditDate")]
        [Column(TypeName = "datetime")]
        public DateTime? AuditDate { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "AuditStatus")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int AuditStatus { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "AuditId")]
        [Column(TypeName = "int")]
        public int? AuditId { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Auditor")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string Auditor { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Remark")]
        [MaxLength(1000)]
        [Column(TypeName = "nvarchar(1000)")]
        public string Remark { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateID")]
        [Column(TypeName = "int")]
        public int? CreateID { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Creator")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Creator { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateDate")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyID")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Modifier")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Modifier { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyDate")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        ///部门编号
        /// </summary>
        [Display(Name = "部门编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string DepartCode { get; set; }

        /// <summary>
        ///工厂编号
        /// </summary>
        [Display(Name = "工厂编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string WorkShopCode { get; set; }

        /// <summary>
        ///产线种类
        /// </summary>
        [Display(Name = "产线种类")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string WorkType { get; set; }

        /// <summary>
        ///统计维度1
        /// </summary>
        [Display(Name = "统计维度1")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string V1 { get; set; }

        /// <summary>
        ///统计维度2
        /// </summary>
        [Display(Name = "统计维度2")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string V2 { get; set; }
    }
}
